package com.whj.wkpt.entity;

import java.time.LocalDateTime;

public class TaskReview {
    private Long reviewId;
    private Long taskId;
    private Long employerId;
    private Long freelancerId;
    private String content;
    private Integer rating; // 评分（1-5分）
    private LocalDateTime reviewTime;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    // Constructors
    public TaskReview() {}

    public TaskReview(Long taskId, Long employerId, Long freelancerId, String content, Integer rating) {
        this.taskId = taskId;
        this.employerId = employerId;
        this.freelancerId = freelancerId;
        this.content = content;
        this.rating = rating;
    }

    // Getters and Setters
    public Long getReviewId() {
        return reviewId;
    }

    public void setReviewId(Long reviewId) {
        this.reviewId = reviewId;
    }

    public Long getTaskId() {
        return taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public Long getEmployerId() {
        return employerId;
    }

    public void setEmployerId(Long employerId) {
        this.employerId = employerId;
    }

    public Long getFreelancerId() {
        return freelancerId;
    }

    public void setFreelancerId(Long freelancerId) {
        this.freelancerId = freelancerId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getRating() {
        return rating;
    }

    public void setRating(Integer rating) {
        this.rating = rating;
    }

    public LocalDateTime getReviewTime() {
        return reviewTime;
    }

    public void setReviewTime(LocalDateTime reviewTime) {
        this.reviewTime = reviewTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "TaskReview{" +
                "reviewId=" + reviewId +
                ", taskId=" + taskId +
                ", employerId=" + employerId +
                ", freelancerId=" + freelancerId +
                ", content='" + content + '\'' +
                ", rating=" + rating +
                ", reviewTime=" + reviewTime +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}